﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;
using System.Reflection;

[assembly: log4net.Config.XmlConfigurator(Watch = true)]
namespace CommunitySystem.BO
{
    public static class Log4JClass
    {
        /// <summary>
        /// 写入日志
        /// </summary>
        /// <param name="errorDescibe">错误描述</param>
        /// <param name="ex">异常对象详情</param>
        public static void SetErro(string errorDescibe, Exception ex)
        {
            ILog log = log4net.LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
           
            log.Error(errorDescibe, ex);
           
        }
    }
}
